﻿Imports System.Windows.Forms

Public Class Dialog3

    Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.OK

        SetItem_Location(Me.Label1.Text.ToString, Me.TextBox1.Text, Me.TextBox2.Text)

        Me.Close()
    End Sub

    Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.Close()
    End Sub

    Private Sub Dialog3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Dim Item As String = ""
        Dim Location As String = ""

        GetItem_Location(Me.Label1.Text.ToString, Item, Location)

        Me.Label2.Text = Item
        Me.Label3.Text = Location

        Me.TextBox1.Text = Item
        Me.TextBox2.Text = Location

    End Sub
End Class
